package com.xuecheng.media.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xuecheng.media.model.po.MediaFiles;
import org.apache.ibatis.annotations.Delete;

/**
 * <p>
 * 媒资信息 Mapper 接口
 * </p>
 *
 * @author 勾新杰
 * @since 2025-01-16
 */
public interface MediaFilesMapper extends BaseMapper<MediaFiles> {

    /**
     * 根据文件路径删除文件信息
     * @param filePath 文件路径
     */
    @Delete("delete from xcplus0107_media.media_files where file_path = #{filePath}")
    void deleteByFilePath(String filePath);
}
